<?php
$site_name = '$site_name';
$jquery = '$jquery';

$site_name_out = $_REQUEST["site_name"];
$jquery_out = $_REQUEST["jquery"];

$myFile = "config_results.php";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "<?php\n";
fwrite($fh, $stringData);
$stringData = "$site_name = '$site_name_out';\n";
fwrite($fh, $stringData);
$stringData = "$jquery = '$jquery_out';\n";
fwrite($fh, $stringData);
$stringData = "?>";
fwrite($fh, $stringData);
fclose($fh);

?>